package net.guerlab.sdk.anubis.request;

import net.guerlab.sdk.anubis.AnubisConstants;
import net.guerlab.sdk.anubis.entity.CancelInfo;
import net.guerlab.sdk.anubis.response.OrderCancelResponse;

/**
 * 订单取消请求
 * 
 * @author guer
 *
 */
public class OrderCancelRequest extends AbstractBusinessRequest<OrderCancelResponse> {

    /**
     * 取消信息
     */
    private CancelInfo cancelInfo;

    @Override
    protected void createRequestUri(
            StringBuilder builder) {
        builder.append(AnubisConstants.URL_ORDER_CANCEL);
    }

    @Override
    protected Object getReuqestData() {
        return cancelInfo;
    }

    /**
     * 返回 取消信息
     *
     * @return 取消信息
     */
    public CancelInfo getCancelInfo() {
        return cancelInfo;
    }

    /**
     * 设置取消信息
     *
     * @param cancelInfo
     *            取消信息
     */
    public void setCancelInfo(
            CancelInfo cancelInfo) {
        this.cancelInfo = cancelInfo;
    }

}
